<?php
/**
 * Created by JetBrains PhpStorm.
 * User: HoangAlex
 * Date: 6/29/12
 * Time: 10:14 PM
 * To change this template use File | Settings | File Templates.
 */
?>
<div class="head_title"><h1 align="center">XEM LƯƠNG NHÂN VIÊN</h1></div>
<?php
echo $this->Form->create('ThongKe', array('action' => 'luong'));
echo $this->Form->input('id', array('type' => 'hidden'));
echo $this->Form->input('NGAYTK', array('label' => 'Tháng cần xem'));
echo $this->Form->submit('Chọn', array('name' => 'submit'));

echo $this->Form->end();
?>
<?php
if ($this->data != null){
$NGAY = $this->data['ThongKe']['NGAYTK']['year'] . "-" . $this->data['ThongKe']['NGAYTK']['month'] . "-" . $this->data['ThongKe']['NGAYTK']['day'];
$THANG = $this->data['ThongKe']['NGAYTK']['month'];
$NAM = $this->data['ThongKe']['NGAYTK']['year'];
//echo $this->Html->link('Xem bảng lương', array('action' => 'viewluong', $THANG), array('class' => 'notice', 'style' => 'text-decoration: none', 'target' => '_blank'));
echo $this->Html->link('Xem bảng lương', array('action' => 'viewluong', $THANG), array('class' => 'notice success'));
}?>